package io.framework.modules.hpinfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.framework.common.service.impl.CrudServiceImpl;
import io.framework.modules.hpinfo.dao.VTHpglYsspinfoDao;
import io.framework.modules.hpinfo.dto.VTHpglYsspinfoDTO;
import io.framework.modules.hpinfo.entity.VTHpglYsspinfoEntity;
import io.framework.modules.hpinfo.service.VTHpglYsspinfoService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 环境影响评价管理-环评验收审批业务信息
 *
 * @author Gujq email
 * @since 1.0.0 2020-03-19
 */
@Service
public class VTHpglYsspinfoServiceImpl extends CrudServiceImpl<VTHpglYsspinfoDao, VTHpglYsspinfoEntity, VTHpglYsspinfoDTO> implements VTHpglYsspinfoService {

    @Override
    public QueryWrapper<VTHpglYsspinfoEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<VTHpglYsspinfoEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}